using System;
using System.Collections.Generic;
using System.Text;
using System.DirectoryServices;

namespace LogAnalyzerIIS.Objects
{
	/// <summary>
	///  Encapsulates application properties
	/// </summary>
	public class WebApplication
	{
		/// <summary>
		/// application name
		/// </summary>
		public string Name = "";

		/// <summary>
		/// path to log files 
		/// </summary>
		public string LogPath = "";

		/// <summary>
		/// start date of application logs
		/// </summary>
		public DateTime StartDate = DateTime.MaxValue;

		/// <summary>
		/// end date of the application logs
		/// </summary>
		public DateTime EndDate = DateTime.MinValue;

		/// <summary>
		/// indicates whether application needs to be processed
		/// </summary>
		public bool Enabled = true;

		/// <summary>
		/// list of the log files
		/// </summary>
		public List<FilePath> LogFiles = new List<FilePath>();
		public override string ToString()
		{
			return Name;
		}
	}
}
